<?php
/* @var $this \yii\web\View*/
/** @var $model \backend\models\Admin  */

use backend\models\SignupForm;
use yii\bootstrap\ActiveForm;
use yii\bootstrap\Html;
use yii\captcha\Captcha;


$this->title = "注 册";

$this->params['breadcrumbs'][] = ['label'=>'管理员','url'=>['manager/index']];

$this->params['breadcrumbs'][]=$this->title;

$this->registerCss('div.required label:after{content:" *";color:red;}');

$form = ActiveForm::begin();

echo $form->field($model,'username');

echo $form->field($model,'email');

echo $form->field($model,'password')->passwordInput();

echo $form->field($model,'password_reset');

echo $form->field($model,'userRoles')->inline()->checkboxList(SignupForm::getRoles());

echo $form->field($model,'verifyCode')->widget(Captcha::className(),[
    'captchaAction'=>'manager/captcha',
    'imageOptions'=>[
        'alt'=>'验证码',
        'title'=>'换一个',
        'style'=>'cursor:pointer;margin-left:25px',
    ],
]);


echo Html::submitButton('注册',['class'=>'btn btn-primary']);

ActiveForm::end();